package com.ruoyi.analysis.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.analysis.mapper.ProductAnalysisTeamMapper;
import com.ruoyi.analysis.domain.ProductAnalysisTeam;
import com.ruoyi.analysis.service.IProductAnalysisTeamService;
import com.ruoyi.common.core.text.Convert;

/**
 * 班组生产数据Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-01-17
 */
@Service
public class ProductAnalysisTeamServiceImpl implements IProductAnalysisTeamService 
{
    @Autowired
    private ProductAnalysisTeamMapper productAnalysisTeamMapper;

    /**
     * 查询班组生产数据
     * 
     * @param id 班组生产数据主键
     * @return 班组生产数据
     */
    @Override
    public ProductAnalysisTeam selectProductAnalysisTeamById(Long id)
    {
        return productAnalysisTeamMapper.selectProductAnalysisTeamById(id);
    }

    /**
     * 查询班组生产数据列表
     * 
     * @param productAnalysisTeam 班组生产数据
     * @return 班组生产数据
     */
    @Override
    public List<ProductAnalysisTeam> selectProductAnalysisTeamList(ProductAnalysisTeam productAnalysisTeam)
    {
        return productAnalysisTeamMapper.selectProductAnalysisTeamList(productAnalysisTeam);
    }

    /**
     * 新增班组生产数据
     * 
     * @param productAnalysisTeam 班组生产数据
     * @return 结果
     */
    @Override
    public int insertProductAnalysisTeam(ProductAnalysisTeam productAnalysisTeam)
    {
        return productAnalysisTeamMapper.insertProductAnalysisTeam(productAnalysisTeam);
    }

    /**
     * 修改班组生产数据
     * 
     * @param productAnalysisTeam 班组生产数据
     * @return 结果
     */
    @Override
    public int updateProductAnalysisTeam(ProductAnalysisTeam productAnalysisTeam)
    {
        return productAnalysisTeamMapper.updateProductAnalysisTeam(productAnalysisTeam);
    }

    /**
     * 批量删除班组生产数据
     * 
     * @param ids 需要删除的班组生产数据主键
     * @return 结果
     */
    @Override
    public int deleteProductAnalysisTeamByIds(String ids)
    {
        return productAnalysisTeamMapper.deleteProductAnalysisTeamByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除班组生产数据信息
     * 
     * @param id 班组生产数据主键
     * @return 结果
     */
    @Override
    public int deleteProductAnalysisTeamById(Long id)
    {
        return productAnalysisTeamMapper.deleteProductAnalysisTeamById(id);
    }
}
